package routers

import (
	"github.com/gin-gonic/gin"
	"jgame-api/controllrs"
	"jgame-api/middleware"
)

// Register 注册路由
func Register(engine *gin.Engine) {

	engine.GET("/user/token/:uid", controllrs.UserController{}.GetUserToken)

	auth := engine.Group("")
	{
		auth.Use(middleware.AuthToken())
	}

}
